package tests;

import common.Utils;
import org.openqa.selenium.By;

public class EditPage extends Utils {
    public static String url = "http://8.138.167.159:8080/blog_update.html?blogId=8";
    public EditPage() {
        super(url);
    }

    /**
     * isTitleExist
     * 标题框是否存在
     */
    public void isTitleExist() {
        driver.findElement(By.cssSelector("#title"));
    }

    /**
     * UpdateSucceed
     * 更新成功
     */
    public void UpdateSucceed() {
        driver.findElement(By.cssSelector("#title")).sendKeys("测试");
        driver.findElement(By.cssSelector("#submit")).click();
        driver.findElement(By.cssSelector("body > div.container > div.left > div"));
    }
}
